const setSlideWidth = (el, initialWidth = 0) => {
  let target = el.children
  const contentWidth = Array.from(target).reduce((p, c) => p + c.clientWidth , initialWidth)
  el.style.width = `${contentWidth}px`
}
export default setSlideWidth
